OverLord Shell

Path : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/
File Upload :
Current File : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/sample file attach demo.php

<?php 
	$to = 'chandrakant.bhamare78@gmail.com';

				//sender
				$from = 'info@trading.com';
				$fromName = 'Trading';
				
				//email subject
				$subject = 'Contract with Attachment'; 
				
				//attachment file path
				
				$file="ult.pdf";
				//email body content
				$htmlContent = '<h1>PHP Email with Attachment by trading Contract</h1>
					<p>This email has sent from PHP script with attachment.</p>';
				
				//header for sender info
				$headers = "From: $fromName"." <".$from.">";
				
				//boundary 
				$semi_rand = md5(time()); 
				$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; 
				
				//headers for attachment 
				$headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; 
				
				//multipart boundary 
				$message = "--{$mime_boundary}\n" . "Content-Type: text/html; charset=\"UTF-8\"\n" .
				"Content-Transfer-Encoding: 7bit\n\n" . $htmlContent . "\n\n"; 
				
				//preparing attachment
				
				if(!empty($file) > 0){
					if(is_file($file)){
					
						$message .= "--{$mime_boundary}\n";
						$fp =    @fopen($file,"rb");
						$data =  @fread($fp,filesize($file));
						@fclose($fp);
						
						$data = chunk_split(base64_encode($data));
					
					//	$data =$sa;
						$message .= "Content-Type: application/octet-stream; name=\"".basename($file)."\"\n" . 
						"Content-Description: ".basename($files[$i])."\n" .
						"Content-Disposition: attachment;\n" . " filename=\"".basename($file)."\"; size=".filesize($file).";\n" . 
						"Content-Transfer-Encoding: base64\n\n" . $data . "\n\n";
					}
				}
						
				$message .= "--{$mime_boundary}--";
				$returnpath = "-f" . $from;
				
				//send email
				echo $to."--".$subject."--".$message."--".$headers."--".$returnpath;
				$mail = @mail($to, $subject, $message, $headers, $returnpath); 
				
				if($mail){
					echo 111;
					
				}
				
				?>

xRyukZ - Copyright 2k19